<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
	<!-- 样式文件的引入 -->
	<link rel="stylesheet" type="text/css" href="/comm-work-flow-server/commons/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="/comm-work-flow-server/commons/themes/icon.css">
	<link href="/comm-work-flow-server/commons/css/style.css" rel="stylesheet" type="text/css"/>
	<script id="jquery_183" type="text/javascript" class="library" src="/comm-work-flow-server/commons/js/jquery-1.8.0.min.js"></script>
	<link rel="stylesheet" type="text/css" href="/comm-work-flow-server/commons/css/flow/flow.css">
	<script type="text/javascript" src="/comm-work-flow-server/commons/js/flow/GooFunc.js"></script>
	<script type="text/javascript" src="/comm-work-flow-server/commons/js/flow/flow.js"></script>
	<script type="text/javascript" src="/comm-work-flow-server/commons/js/flow/flow_fn.js"></script>
	<script type="text/javascript" src="/comm-work-flow-server/commons/js/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="/comm-work-flow-server/commons/js/flow/json2.js"></script>
	<script type="text/javascript" src="/comm-work-flow-server/commons/js/easyui-lang-zh_CN.js"></script>
	<!-- 开发使用的公用js方法 -->
	<script type="text/javascript" src="/comm-work-flow-business/commons/js/common.js"></script>
		<!-- 开发国际化的引用，主要完成后台信息在前台提示的国际化，一定要放在最后 -->
	<script type="text/javascript">var ctx = '/comm-work-flow-server';var actionExt = "action";var i18n = new Object();</script>
	<script src="/comm-work-flow-server/commons/js/i18n/message_zh_CN.js" type="text/javascript"></script>
	
<title>工作流设计器</title>
<!--[if lt IE 9]>
<?import namespace="v" implementation="#default#VML" ?>
<![endif]-->
</head>
<body>
<div id="loadDiv" style="text-align: center;margin-top: 120px;">
	<img src="/comm-work-flow-server/commons/images/flow/load.gif" alt="数据加载中..." />
</div>
<div id="flow"></div>
<script type="text/javascript">
	var flowId = getUrlParamValue('flowId');
	var businessId = getUrlParamValue('businessId');
	$.ajax({
		type: "get",
		timeout:20000,
		url:  "/comm-work-flow-server/workflow/workflowinfo/showWorkFlowInfo?r="+new Date().getTime(),
		data:'workFlowId='+flowId+'&businessId='+businessId,
		success: function(jsonData){
			$('#loadDiv').hide();
			var property={
				width:802,
				height:434,
				toolBtns:[],
				haveHead:true,
				headBtns:[],//如果haveHead=true，则定义HEAD区的按钮
				haveTool:true,
				isReadOnly:true,
				isReDraw:true,
				useOperStack:true,
				workFlowName:jsonData.data.workFlowName
			};
			var flow,resultData={};
				flow=$.createGooFlow($("#flow"),property);
				//flow.setNodeRemarks(remark);
				flow.loadData(jsonData.code,jsonData.approveNodes);
		},
		error: function(res){
			$.messager.alert('提示',i18n.requestError,'error');
		}
	});
	</script>
</body>
</html>
